﻿using AESLib;
using System.Text;

namespace test
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string data = @"测试的json：{
    ""act"":""帐号测试"",
    ""pwd"":""123123""
}";

            string key = "test123987";
            string iv = "939392";

            string encdata = AESProvider.EncToBase64(Encoding.UTF8.GetBytes(data), key, iv);

            byte[] ori = AESProvider.DecFromBase64(encdata, key, iv);
            string oriStr = Encoding.UTF8.GetString(ori);

            Console.WriteLine(encdata);
            Console.WriteLine(oriStr);
        }
    }
}
